package com.ticket.system.mapper;

import com.ticket.system.domain.YanchuOrderDetail;
import com.ticket.system.domain.vo.TicketFolderDetailVo;
import com.ticket.system.domain.vo.TicketFolderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 票夹Mapper接口
 *
 * @date 2023-10-18
 */
public interface YanchuTicketFolderMapper {
    /**
     * 根据用户id查询票夹信息
     *
     * @param curLoginUserId 当前登录用户id
     * @return
     */
    List<TicketFolderVo> pageGetTicketFolder(@Param("curLoginUserId") Long curLoginUserId,@Param("userinfoId")Long userinfoId,@Param("phone")String phone);

    /**
     * 根据用户查询票夹历史票根信息
     *
     * @param curLoginUserId 当前登录用户id
     * @return
     */
    List<TicketFolderVo> pageHistoryCounterfoil(@Param("curLoginUserId") Long curLoginUserId,@Param("userinfoId")Long userinfoId,@Param("phone")String phone);

    /**
     * 根据订单id查询演出信息
     *
     * @param orderId 订单id
     * @return
     */
    TicketFolderVo selectPerformInfoByOrderId(@Param("orderId")Long orderId);

    List<TicketFolderDetailVo> selectTicketFolderDetail(@Param("yanchuOrderDetail") YanchuOrderDetail yanchuOrderDetail);
}
